package librss;
import java.util.Vector;
/*
 * Main.java
 *
 * Created on March 7, 2009, 12:40 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/**
 *
 * @author alvaro
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    public static void main(String arg[]) throws Exception {
        Feed feed = new Feed(".", "rss_config.xml");
        //System.out.println(feed.checkNewItem());
        //System.out.println(feed.checkNewItem());
        //Vector<RSSItem> vec = feed.getItemsByTag("etiqueta1");
        Vector<RSSItem> vec = feed.getAllItems();
        if(vec != null)
        for(int i = 0;i<vec.size();i++){
            System.out.println(vec.get(i).toString());
        }
    }
}
